<?php
/**
 * @Notes:【】
 * @Date: 2022-06-22 22:20
 */

namespace Yj\Providers;

use Hyperf\DbConnection\Db;
use Yj\Core\ServiceProvider;

class AppProvider extends ServiceProvider
{
    public function boot()
    {
        $this->enableQueryLog();
        $this->createServerRunId();
    }

    public function enableQueryLog()
    {
        Db::enableQueryLog();
        
    }

    public function createServerRunId()
    {
        _Cache()->set('SERVER_RUN_ID', SERVER_RUN_ID);
    }

}